This routine computers the noise figure and noise factor (in dB) of a device (typically opamp), for which you know the noise voltage and noise current.